'''
Created on May 29, 2012

@author: mupet
'''

import wx

class AlertsTab(wx.Panel):
    
    name = "Alerts"

    def __init__(self, parent, generalEventListener):
        '''
        Constructor
        '''
        wx.Panel.__init__(self, parent)
        self.setListener(generalEventListener)
        sizer = wx.BoxSizer(wx.VERTICAL)
        self.SetSizer(sizer)
        listBox = wx.ListBox(self)
        sizer.Add(listBox, 1, wx.EXPAND | wx.ALL, 10)
        self.listener.setListBox(listBox)
        
        
    def setListener(self, generalEventListener):
        self.listener = generalEventListener.getAlertsTabListener()